package br.com.orion.sga.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.orion.sga.exception.DaoException;
import br.com.orion.sga.model.dao.FormaPagamentoDao;
import br.com.orion.sga.model.entities.FormaPagamento;

@Service
public class FormaPagamentoService {

	@Autowired
	private FormaPagamentoDao formaPagamentoDao;
	
	/**
	 * listAll
	 * @return
	 */
	public List<FormaPagamento> listAll() {
		return formaPagamentoDao.listAll();
	}
	
	/**
	 * save
	 * @param formaPagamento
	 * @throws DaoException
	 */
	public void save (FormaPagamento formaPagamento) throws DaoException {
		formaPagamentoDao.save(formaPagamento);
	}
}
